<!DOCTYPE html>
<html>
<head>
    <title>浮动脱标</title>
    <style>
        .floatPink{
            background-color: hotpink;
            height: 100px;
            width: 200px;
            float: left;
        }
        .blueBlock{
            background-color: blue;
            height: 150px;
            width: 200px;
        }
    </style>
</head>
<body>
    <div>
        <div class="floatPink"></div>
        <div class="blueBlock"></div>
    </div>
</body>
</html>